using SharpGraphT.Sharp.Sharp.Util;

namespace SharpGraphT.Graph;

public class DefaultGraphIterables<TV, TE> : IGraphIterables<TV, TE>
    where TE : class, new() {
    protected IGraph<TV, TE> graph;

    public DefaultGraphIterables() : this(null) { }

    public DefaultGraphIterables(IGraph<TV, TE> graph) =>
        this.graph = Objects.RequireNonNull(graph);


    public IGraph<TV, TE> Graph => graph;
}